package org.cunamas.web.controller;

import java.io.IOException;

import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletResponse;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("session")
public class CrossReport {
	
	StringBuffer graficoServiciosAlimentarios = new StringBuffer();
	Boolean mostrarReporte;
	String onLoad;
	
	
	public void generarReporte(){
		System.out.println("generando reporte");
		graficoServiciosAlimentarios.append("<graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' decimalPrecision='0' formatNumberScale='0'>")
		 .append("")
		 .append("");


		setMostrarReporte(true);
		
	}


	public Boolean getMostrarReporte() {
		return mostrarReporte;
	}


	public void setMostrarReporte(Boolean mostrarReporte) {
		this.mostrarReporte = mostrarReporte;
	}


	public String getOnLoad() {
		setMostrarReporte(false);
		return "";
	}


	public void setOnLoad(String onload) {
		this.onLoad = onload;
	}
	

}
